package com.woniu.service;

import com.woniu.Result;
import com.woniu.dto.OrderPayDto;
import com.woniu.pojo.Care;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.pojo.vo.CareVo;
import com.woniu.pojo.vo.OrderVo;
import com.woniu.pojo.vo.PaymentVo;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zbk
 * @since 2022-11-16
 */
public interface ICareService extends IService<Care> {

    List<Care> queryAllCare(Integer shopId);

    OrderVo submitOrder(Integer productId, String userId, Integer shopId);

    PaymentVo confirmOrder(OrderPayDto orderPayDto, String userId);

    Result<String> payOrder(OrderPayDto orderPayDto, String userId, HttpServletResponse httpResponse);

    Result<String> verifyCode(String code, String userId);
}
